﻿@{
    ViewData["Title"] = "Add";
    Layout = null;
}
<link rel="stylesheet" href="~/layui/css/layui.css">
@*引用*@
<script src="~/Scripts/jquery-3.4.1.min.js"></script>
<script src="~/layer/Model/appsettings.js"></script>
<script src="~/layui/layui.js"></script>

<div style="width:800px">
    <form class="layui-form" action="/Tyre/AddEf">

        <div class="layui-form-item">
            <label class="layui-form-label">车牌号：</label>
            <div class="layui-input-block">
                <input type="text" name="VehicleId" required lay-verify="required" placeholder="请输入车牌号" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">轮胎品牌：</label>
            <div class="layui-input-block">
                <input type="text" name="Brand" required lay-verify="required" placeholder="请输入轮胎品牌" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">规格：</label>
            <div class="layui-input-block">
                <input type="text" name="Specifications" required lay-verify="required" placeholder="请输入规格" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">数量：</label>
            <div class="layui-input-block">
                <input type="text" name="Num" required lay-verify="required" placeholder="请输入数量" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">使用人</label>
            <div class="layui-input-block">
                <input type="text" name="Person" required lay-verify="required" placeholder="请输入使用人" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">使用日期</label>
            <div class="layui-input-block">
                <input type="date" name="UseDate" required lay-verify="required" placeholder="请输入公司净损失" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入备注" name="Remark" class="layui-textarea"></textarea>
            </div>
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="submit" lay-submit>立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary" onclick="tz()">返回</button>
            </div>
        </div>
    </form>
</div>

<script>
    //Demo
    layui.use('form', function () {
        var form = layui.form;
        form.render();
        //监听提交

        form.on('submit(formDemo)', function (data) {
        });
    });

    var tz = function () {
        location.href = "/Tyre/Index"
    }
</script>





